package com.ld.control.business.sample.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 样品表，存放任务的样品信息
 * </p>
 *
 * @author wangfeng
 * @since 2024-06-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sample")
@Schema(description = "SampleModel对象")
public class SampleModel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long taskExampleId;

    private Long subTaskExampleId;

    private Long processExampleId;

    private Long processNodeExampleId;

    private Long processNodeExampleRunningId;

    private Long equipmentId;

    @Schema(description = "样品编码")
    private String barcode;

    @Schema(description = "样品名称")
    private String name;

    @Schema(description = "体积")
    private BigDecimal volume;

    @Schema(description = "体积单位")
    private String volumeUnit;

    @Schema(description = "样品的json数据")
    private String jsonData;

    @Schema(description = "创建人id")
    private Long createBy;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新人")
    private Long updateBy;

    @Schema(description = "更新时间")
    private Date updateTime;

    public static final String ID = "id";

    public static final String TASK_EXAMPLE_ID = "task_example_id";

    public static final String SUB_TASK_EXAMPLE_ID = "sub_task_example_id";

    public static final String PROCESS_EXAMPLE_ID = "process_example_id";

    public static final String PROCESS_NODE_EXAMPLE_ID = "process_node_example_id";

    public static final String PROCESS_NODE_EXAMPLE_RUNNING_ID = "process_node_example_running_id";

    public static final String BARCODE = "barcode";

    public static final String NAME = "name";

    public static final String VOLUME = "volume";

    public static final String VOLUME_UNIT = "volume_unit";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

}
